/**
 * <AiRmob-Framework; A simple augmented reality framework for android >
    Copyright (C) <2012>  <AiRmob Team>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package airmob.framework;

import rendercomponents.AiRmobRenderer;
import android.content.Context;
import android.graphics.PixelFormat;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;


public class AiRmobGLSurfaceView extends GLSurfaceView {
	
	public AiRmobRenderer mRenderer;
	
    //public AiRmobGLSurfaceView(Context context, AiRmobRenderer renderer) {
    	 public AiRmobGLSurfaceView(Context context) {
        super(context);	
        setEGLConfigChooser(8, 8, 8, 8, 16, 0); // 5551 ?
        setEGLContextClientVersion(2);        

        getHolder().setFormat(PixelFormat.RGBA_5551);  
    }
    
    public AiRmobGLSurfaceView(Context context, AttributeSet attrs)
        {
        super(context, attrs);
        setEGLConfigChooser(8, 8, 8, 8, 16, 0); // 5551 ?
        setEGLContextClientVersion(2);         
        getHolder().setFormat(PixelFormat.RGBA_5551);  
        }
    
    
    
    
}

